jQuery(function(){
	$.divselect("#divselect_po_status", "#status");
	$.divselect("#divselect_po_checkStatus", "#checkStatus");
	$("#startDate").val(getFirstDateOfCurrMonth());
	$("#endDate").val(getCurrDate());
});

var query = function(){
	asyncSubmit("orderManagerForm");
};


var updateCheckStatus = function(id){
	layer.confirm("确定要执行订单审核操作？",function(){
		ajaxCommFunWithDataType(globePath+"/ordermanage/updateCheckStatus"+action, "orderId="+id,'json',function(msg){
			if (msg.result == "success") {
				layer.msg("审核成功！",1,9,function(){
					query();
				});
			} else {
				layer.alert(msg.result);
			};
		});
	});
};
